﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace EasyGameTemplate
{
    public abstract class GamePoolAbstract : MonoBehaviour, GamePoolInterface
    {

        [HideInInspector]
        public string pool_hash;

        protected bool isDisable;

        public bool IsDisable() { return this.isDisable; }

        public virtual void Pool_Disable()
        {
            isDisable = true;
            this.gameObject.transform.SetParent(GameManager.Instance.GamePoolObject.transform);
            this.gameObject.SetActive(false);
        }

        public virtual void Pool_Enable()
        {
            this.isDisable = false; 
            this.gameObject.SetActive(true);
        }

    }
}